
<%@page import="com.general.genericUtils.BuildExceptionTrace"%>
<%@page import="com.serviceBeans.AlliBilliForum"%>
<%@page import="com.spring.BusinessComponents.DoTransaction"%>
<%@page import="java.util.Date"%>
<%@page import="org.springframework.context.support.ClassPathXmlApplicationContext"%>
<%@page import="java.util.List"%><% 
DoTransaction doTransaction=null;
try{
	ClassPathXmlApplicationContext ctx = (ClassPathXmlApplicationContext)getServletContext().getAttribute("ctx");
	doTransaction = (DoTransaction)ctx.getBean("doTransaction");
	AlliBilliForum forum = new AlliBilliForum();
	forum.setName(request.getParameter("name"));
	forum.setContent(request.getParameter("content"));
	forum.setPostedDate(new java.sql.Timestamp(new Date().getTime()));
	doTransaction.saveForumData(forum);
	}
	catch (Exception e) {
		doTransaction.saveException(BuildExceptionTrace.buildAndGiveExceptionTrace(e));
	}
		
		%>